#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "tree.h"


int main(int argc, char *argv[])
{
    Node* BST = NULL;
    int n=0;
    srand(time(NULL));
    while(n < 10)
    {
        Insert(&BST,rand()%900 + 100);
        n++;
    }
    Insert(&BST,1);
    Insert(&BST,4);
    Insert(&BST,1000);
    intravel(BST);

    printf("\n");
    Delete(&BST,4);
    printf("\n");
    Delete(&BST,1);
    printf("\n");
    Delete(&BST,1000);
    printf("\n");
    intravel(BST);
    printf("\n");
    return 0;
}
